package cn.jingzhuan.fm.mvp.model

import cn.jingzhuan.fm.mvp.contract.FMIndexContract
import cn.jingzhuan.fm.network.FMApiService
import cn.jingzhuan.fm.network.json.JsonResponse
import cn.jingzhuan.fm.pojo.ADBanner
import cn.jingzhuan.fm.pojo.FMAlbum
import cn.jingzhuan.fm.pojo.AlbumTodayListen
import io.reactivex.Flowable
import javax.inject.Inject

class FMIndexModel @Inject constructor(var fmApiService: FMApiService) : FMIndexContract.Model{

    override fun getAlbumRecommendList(): Flowable<JsonResponse<List<FMAlbum>>> = fmApiService.albumRecommendList()

    override fun getTodayListenList(): Flowable<JsonResponse<List<AlbumTodayListen>>> = fmApiService.todayListenList()

    override fun getBannerList(): Flowable<JsonResponse<List<ADBanner>>> = fmApiService.bannerList()

}